{extend name="public:base" }
{block name="seo"}

    <?php
    $cid = Input('cid');
    if($cid){
        $page_title = $page_keywords = GTC($cid,'Category');
    }
    $tag = Input('tag');
    if($tag){
        $page_title = $page_keywords = '关键字：'.$tag;
    }
    ?>
    {include file="public:seo"/}
{/block}
{block name="body"}
	<pjax>
    {Data:list name="Article" var="var" order="id desc" cid="request" keywords="request" tag="$tag" pagesize="10"}
    {volist name="var.list" id="vo"}            
        <article id="post-{$vo.id}" class="post">
            <div class="wrap">
                <div class="thumbnail">
                    <a pjax href="/Category/{$vo.cid}.html" class="category">{$vo.cid|GTC='category'}</a>
                    <a pjax href="/{$vo.id}.html" title="{$vo.title}"><img src="{$vo.img}" alt="{$vo.title}"></a>
                </div>
                <div class="right">
                    <div class="content">
                        <h2 class="title"><a pjax href="/{$vo.id}.html" rel="bookmark">{$vo.title}</a></h2>
                        <div class="abstruct">{$vo|getAbstruct}</div>
                        <div class="meta">
                            <span class="posted-on">
                                <i class="fa fa-calendar"></i>
                                <a pjax href="/{$vo.id}.html" >
                                    <time datetime="{$vo.update_time|date='Y-m-d H:i:s'}">{$vo.update_time|date='Y-m-d H:i:s'}</time>
                                </a>
                            </span>
                            <span class="byline"><i class="fa fa-user"></i><span class="author vcard"><a pjax href="/Aboutme.html" class="url fn n">Cansnow</a></span></span>
                            <span class="comments-link"><i class="fa fa-comment-o"></i><a pjax href="/{$vo.id}.html#comments">{$vo.hit} Views</a></span>
                            <span class="comments-link"><i class="fa fa-comment-o"></i><a pjax href="/{$vo.id}.html#comments">2 Comments</a></span>
                        </div>
                        <a pjax href="/{$vo.id}.html" class="readmore">阅读全文</a>
                    </div>
                </div>
                <div class="cf"></div>
            </div>
        </article>
    {/volist}
	<nav class="pure-paginator">{$var.page}</nav>
    {/Data:list}
	</pjax>
{/block}